
<div class="" style="width: 190px; height:20px;border-right: 1px #ebebeb solid;"></div>

<div style="padding-left: 10px;">
    <div style="float: left;;width: 180px;  border-right: 1px #ebebeb solid;">
        <div class="hd">
            <div class="solid"></div>
            <h3>好友分布</h3>
        </div>
        <div class="bd" style="margin-top: 20px;">
            <ul class=" js_left_list" id="sch_list1" style="width: 160px;">
             <div style="color: #9a9a9a;">按学校：</div>
                <volist name="school" id="vo" offset="0" length='5'>

                    <li rel="-2" id="group__3" class="grouplist1" style="margin-top: 10px;">
                        <div style="width: 150px;">

                            <div style="float: left">
                                <a class="js_left_gname a" onclick="showschoolList('{$vo.school_name}',0)">{$vo.school_name}</a>
                                <span class="num" style="display: inline;">({$vo.count})</span>
                            </div>

                            <div class="clearfix"></div>
                        </div>
                    </li>
                </volist>
            </ul>
            <div class="solid"></div>
            <ul class=" js_left_list" id="add_list1" style="width: 160px;">
                <div style="color: #9a9a9a;">按地区：</div>
                <volist name="city" id="vo"  offset="0" length='5'>

                    <li rel="-2" id="group__4" class="grouplist1" style="margin-top: 10px;">
                        <div style="width: 150px;">

                            <div style="float: left">
                                <a class="js_left_gname a" onclick="showschoolList(0,'{$vo.city_id}')">{$vo.city_name}</a>
                                <span class="num" style="display: inline;">({$vo.count})</span>
                            </div>

                            <div class="clearfix"></div>
                        </div>
                    </li>
                </volist>
            </ul>
        </div>

    </div>
</div>

<script>
    function showschoolList(school_name,city_id) {

        $('#friendlist').load(U("friend/Index/_Cfriendlist" + '&school_name=' + school_name +'&city_id='+city_id));
    }

</script>